/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: none;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}



/*==========================================================================
                                      框架
==========================================================================*/

* {
  margin: 0;
  padding: 0;
}

.AllDiv {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  flex-direction: column;
}

.TopNavigation {
  background-color: #fff200;
  width: 100%;
  height: 100px;
  position: fixed;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#toplogo{
  width: 80px;
  height: 80px;
  background: orange;
  margin-left: 10px ;
  border-radius: 25px;
  text-align: center;
  line-height: 70px;
}

.BodyContentSurface {
  background-color: #F3F4F7;
  width: 100%;
  flex: 1;
}

.BodyContent {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  flex-direction: row;
}

.LeftNavigationSurface {
  height: 100%;
  width: 200px;
  position: fixed;
  background-color: #fff200;
  /*border: 1px solid red;*/
}
.left1
{
  margin-top: 104px;
}
.left
{
  margin-top: 4px;
}
.left-bq{
  background: white;
  height: 70px;
  margin-left: 6px;
  margin-right: 6px; ;
  width: auto;
  /*圆角*/
  border-radius: 25px;
  /*文字居中*/
  text-align: center;
  line-height: 70px;
}
.RightContentSurface {
  height: 90%;
  flex: 1;
  margin-left: 200px;
  margin-top: 102px;
  background: white;
}

.RightContent {
  width: 100%;
  height: 3000px;
  background: white;
}
.content
{
  height: 3000px;
  background-color: white;
}

a {
  text-decoration: none;
}


/*------------------------------------------------------------------------*/
/* 1. 标题与操作区基础样式 */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.content-title {
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.content-operate {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 按钮样式 */
.btn {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background-color: #27ae60;
  color: white;
}

.btn-primary:hover {
  background-color: #219653;
}

.btn-buy {
  background-color: #e67e22;
  color: white;
  width: 100%;
  margin-top: 8px;
  padding: 6px 0;
  font-size: 12px;
}

.btn-buy:hover {
  background-color: #d35400;
}

/* 下拉排序框 */
.sort-select select {
  padding: 6px 28px 6px 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 12px;
  color: #666;
  appearance: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") no-repeat right 8px center;
  background-size: 12px;
}

/* 2. 筛选区样式 */
.content-filter {
  margin-bottom: 20px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.filter-item a {
  display: block;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: #666;
  transition: all 0.3s;
}

.filter-item.active a {
  background-color: #27ae60;
  color: white;
}

.filter-item a:hover {
  background-color: #f1f8f4;
  color: #27ae60;
}

.second-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px dashed #eee;
  border-bottom: 1px dashed #eee;
  margin-bottom: 15px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #666;
}

.filter-label {
  color: #333;
  font-weight: 500;
}

.filter-subList {
  display: flex;
  gap: 8px;
}

.filter-subList a {
  color: #666;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.3s;
}

.filter-subList a.active {
  background-color: #f1f8f4;
  color: #27ae60;
}

.filter-subList a:hover {
  color: #27ae60;
  text-decoration: underline;
}

/* 3. 核心：2行4列横排布局（关键样式） */
.content-card-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px 12px;
  max-width: 100%;
}

/* 横排卡片样式：统一尺寸与布局 */
.card-item {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.3s;
  background-color: white;
  padding: 10px;
}

.card-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* 图片区：增大底部间距（核心改进点） */
.card-img {
  position: relative;
  width: 100%;
  height: 140px;
  /* 核心修改：将底部间距从8px改为14px，拉开图片与文字距离 */
  margin-bottom: 14px;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* 成色标签：补全完整样式 */
.tag-top {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  background-color: #e67e22;
  color: white;
  font-size: 11px;
  border-radius: 4px;
  z-index: 10;
}

/* 商品标题样式 */
.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.card-title a {
  color: #333;
  transition: color 0.3s;
}

.card-title a:hover {
  color: #27ae60;
}

/* 商品参数样式 */
.card-params {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: #666;
  margin-bottom: 8px;
}

/* 商品价格样式 */
.card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.price-now {
  font-size: 16px;
  color: #e74c3c;
  font-weight: 600;
}

.price-original {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}
